<app-header title="已购存储"></app-header>

<ion-content>
  <div class="order">
    <div *ngIf="buyList.length == 0" class="none">暂无数据</div>
    <ul *ngIf="buyList.length > 0">
      <li class="pool_bg w96" *ngFor="let item of buyList">
        <div [routerLink]="['/mine/orderdetail']" [queryParams]="{id:item.id}" class="order-cona df_ja">
          <div>
            <h4>{{item.productName}} {{item.productType}} <i *ngIf="item.coinType == 'bzz'">节点</i><i *ngIf="item.coinType !== 'bzz'">T</i></h4>
            <p>合计：<i>{{item.productPrice}} 金币</i></p>
          </div>
          <div class="order_img df_ja">
            <img [src]="item.homeProductImg" alt="">
          </div>
        </div>
        <div class="order-conb df_ja">
          <p [routerLink]="['/mine/orderdetail']" [queryParams]="{id:item.id}">购买日期：<i>{{item.createTime.slice(0,16)}}</i></p>
          <!-- <p>订单编号：{{item.contractNumber}}</p> -->
          <!-- <span><a [href]="contract+item.contractAddress" download="" target="_blank">查看合同</a></span> -->
          <div *ngIf="item.coinType == 'fil'">
            <span [routerLink]="['/activate']" [queryParams]="{id:item.id}" *ngIf="item.pledgeFilStatus == -1 || item.pledgeFilStatus == 1">待激活</span>
            <span *ngIf="item.pledgeFilStatus == 0">待审核</span>
            <span *ngIf="item.pledgeFilStatus == 10">已激活</span>
            <span *ngIf="item.pledgeFilStatus == 20">不通过</span>
          </div>
         
        </div>
      </li>
    </ul>
  </div>
  
</ion-content>
